package org.bluedream.core.module.entity.goods;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;
import org.bluedream.comm.base.PageEntity;

/**
 * @ClassName Supplier
 * @Description TODO
 * @Author foxsand
 * @Data 2021-07-29 16:16
 * @Version
 */
@Data
@ToString(callSuper = true)
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
@TableName(value = "tSupplier")
public class Supplier extends PageEntity<Supplier> {
    private static final long serialVersionUID = 7048320965422928138L;

    @NonNull
    private String code;
    @NonNull
    private String name;
    private String legalPerson;//法人
    private String contacts;    //联系人
    private String address;
    private String tel;
    private String tax;
    private String bank;
    private String account;     //银行账号
    private String license; //营业执照号

    public Supplier(String id){
        this.id = id;
    }

    public Supplier(long limit , long pageSize){
        this.limit = limit;
        this.page = pageSize;
    }
}
